package com.simple.datax.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.datax.bo.IDataxNodeChannelBO;
import com.simple.datax.dao.IDataxNodeChannelDAO;
import com.simple.datax.vo.DataxNodeChannelVO;
import com.simple.util.object.PageInfoBean;

@Service("dataxNodeChannelBO")
@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class DataxNodeChannelBOImpl implements IDataxNodeChannelBO {

	@Autowired
	private IDataxNodeChannelDAO dataxNodeChannelDAO;
	
	@Override
	public DataxNodeChannelVO findById(String fcNode) {
		return dataxNodeChannelDAO.findByNode(fcNode);
	}

	@Override
	public List<DataxNodeChannelVO> findAll() {
		return dataxNodeChannelDAO.findAll();
	}

	public List<DataxNodeChannelVO> findDataxNodeChannelVOByPage(PageInfoBean pageInfoBean, String fcNodeSelect, String fcSendTypeSelect, String fcRecvTypeSelect, String fiFlagSelect) {
		return dataxNodeChannelDAO.findDataxNodeChannelVOByPage(pageInfoBean, fcNodeSelect, fcSendTypeSelect, fcRecvTypeSelect, fiFlagSelect);
	}
	
}
